package com.hdax.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dm.entity.user.DmLinkUser;
import com.hdax.dm.mappers.DmLinkUserMapper;
import com.hdax.dm.service.LinkUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LinkUserServiceImpl extends ServiceImpl<DmLinkUserMapper,DmLinkUser> implements LinkUserService {

    @Override
    public List<DmLinkUser> ticketBuyerList(Long userId) {
        QueryWrapper<DmLinkUser> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("userId",userId);
        return baseMapper.selectList(queryWrapper);
    }
}
